Skip to content

feature / #68 skip running checks if file content has not changed#72

Open
davidramnero wants to merge 3 commits into
mainfrom
feature-/-#68-skip-running-checks-if-file-content-has-not-changed
Open

feature / #68 skip running checks if file content has not changed#72
davidramnero wants to merge 3 commits into
mainfrom
feature-/-#68-skip-running-checks-if-file-content-has-not-changed

Conversation

@davidramnero

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread src/extension.ts
return;
}

if ((Object.keys(documentHashMemory) as Array<string>).includes(document.fileName)) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can there be some situation when results are not shown for a file and user wants to save to trigger analysis? is cppcheck always executed when a file is opened? even if user doesn't open the file but vscode opens the file automatically during startup or something?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah this is a good question, I am trying to think of a way to make it safe from ending up in a kind of stuck mode such as you describe, but I am not sure we can be completely safe from it happening.

Maybe this feature isn't worth the risk?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure how much of a problem it is to run checks a little more than necessary tbh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants